Xbasic

WIN_ACCOUNTS Function

Syntax

U win_accounts([C computer ])

Arguments

win_accounts

A collection containing information about the memory configuration of a computer.

computer

Optional. Default = "." (local computer). The name of the computer to analyze.

Description

The WIN_ACCOUNTS() function retrieves information about Windows user and group accounts.

Example

x = win_accounts() 
? x.enum_all() 
= DAVID\Everyone 
DAVID\Administrator 
DAVID\Guest 
DAVID\HelpAssistant 
DAVID\IUSR_DAVID 
DAVID\IWAM_DAVID 
DAVID\test 
... 


? x.get("DAVID\test") 
= AccountType = 512
Caption = "DAVID\test" 
Description = "local non-admin account" 
Disabled = .F.
Domain = "DAVID" 
FullName = "David Bell"
InstallDate = "" 
LocalAccount = "T" 
Lockout = .F.
Name = "test" 
PasswordChangeable = .T. 
PasswordExpires = .F. 
PasswordRequired = .T.
SID = "S-1-5-21-2081314955-4247850554-408701278-1009" 
SIDType = "1" 
Status = "OK"

Limitations

This function does not work with Windows 98 and Windows ME.

See Also